package coop.tecso.test.objets.complex;

//src/gen
import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.JoinColumns;
import javax.persistence.ManyToOne;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;
import javax.persistence.Temporal;
import javax.persistence.TemporalType;
import javax.persistence.Version;

/**
 *
 */
@Entity
@Table(name = "FIM_COUPON")
public class FimCoupon implements java.io.Serializable {
	private static final long serialVersionUID = 1L;
	@Id
	@GeneratedValue(strategy = GenerationType.AUTO, generator = "FIM_COUPON_SEQ")
	@SequenceGenerator(name = "FIM_COUPON_SEQ", sequenceName = "FIM_COUPON_SEQ", allocationSize = 1)
	@Column(name = "FIM_COUPON_ID", nullable = false)
	private int id;
	@Version
	@Column(name = "VERSION")
	private int fimCouponversion;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "RECEIVE_CARRIER", nullable = false, length = 2)
	private String receiveCarrier;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "RECEIVE_FLIGHT", nullable = false, length = 5)
	private String receiveFlight;

	/**
	 *
	 */
	@Basic(optional = false)
	@Temporal(TemporalType.DATE)
	@Column(name = "RECEIVE_DATE", nullable = false)
	private java.util.Date receiveDate;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "COUPON", nullable = false, length = 1)
	private int coupon;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "CK", nullable = false, length = 1)
	private int ck;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "RECEIVE_FROM", nullable = false, length = 3)
	private String receiveFrom;

	/**
	 *
	 */
	@Basic(optional = false)
	@Column(name = "RECEIVE_TO", nullable = false, length = 3)
	private String receiveTo;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_USER", length = 255)
	private String tecCreationUser;

	/**
	 *
	 */
	@Column(name = "TEC_CREATION_TIMESTAMP")
	private java.sql.Timestamp tecCreationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_TIMESTAMP")
	private java.sql.Timestamp tecModificationTimestamp;

	/**
	 *
	 */
	@Column(name = "TEC_MODIFICATION_USER", length = 255)
	private String tecModificationUser;

	/**
	 *
	 */
	@Column(name = "TEC_DELETED")
	private Boolean tecDeleted;

	/**
	 *
	 */
	@ManyToOne(targetEntity = Fim.class, optional = false, fetch = FetchType.LAZY)
	@JoinColumns({ @JoinColumn(name = "FIM_FK", referencedColumnName = "FIM", nullable = false) })
	private Fim fim;

	public FimCoupon() {
	}

	// Constructor for primary key
	public FimCoupon(int id) {
		this.id = id;
	}

	/**
	 * Autogenerated key
	 */
	public int getId() {
		return id;
	}

	public int getFimCouponversion() {
		return fimCouponversion;
	}

	public void setFimCouponversion(int fimCouponversion) {
		this.fimCouponversion = fimCouponversion;
	}

	public String getReceiveCarrier() {
		return receiveCarrier;
	}

	public void setReceiveCarrier(String receiveCarrier) {
		this.receiveCarrier = receiveCarrier;
	}

	public String getReceiveFlight() {
		return receiveFlight;
	}

	public void setReceiveFlight(String receiveFlight) {
		this.receiveFlight = receiveFlight;
	}

	public java.util.Date getReceiveDate() {
		return receiveDate;
	}

	public void setReceiveDate(java.util.Date receiveDate) {
		this.receiveDate = receiveDate;
	}

	public int getCoupon() {
		return coupon;
	}

	public void setCoupon(int coupon) {
		this.coupon = coupon;
	}

	public int getCk() {
		return ck;
	}

	public void setCk(int ck) {
		this.ck = ck;
	}

	public String getReceiveFrom() {
		return receiveFrom;
	}

	public void setReceiveFrom(String receiveFrom) {
		this.receiveFrom = receiveFrom;
	}

	public String getReceiveTo() {
		return receiveTo;
	}

	public void setReceiveTo(String receiveTo) {
		this.receiveTo = receiveTo;
	}

	public String getTecCreationUser() {
		return tecCreationUser;
	}

	public void setTecCreationUser(String tecCreationUser) {
		this.tecCreationUser = tecCreationUser;
	}

	public java.sql.Timestamp getTecCreationTimestamp() {
		return tecCreationTimestamp;
	}

	public void setTecCreationTimestamp(java.sql.Timestamp tecCreationTimestamp) {
		this.tecCreationTimestamp = tecCreationTimestamp;
	}

	public java.sql.Timestamp getTecModificationTimestamp() {
		return tecModificationTimestamp;
	}

	public void setTecModificationTimestamp(java.sql.Timestamp tecModificationTimestamp) {
		this.tecModificationTimestamp = tecModificationTimestamp;
	}

	public String getTecModificationUser() {
		return tecModificationUser;
	}

	public void setTecModificationUser(String tecModificationUser) {
		this.tecModificationUser = tecModificationUser;
	}

	public Boolean getTecDeleted() {
		return tecDeleted;
	}

	public void setTecDeleted(Boolean tecDeleted) {
		this.tecDeleted = tecDeleted;
	}

	public Fim getFim() {
		return fim;
	}

	public void setFim(Fim fim) {
		this.fim = fim;
	}
}
